<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css" href="{{CDN}}/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="{{CDN}}/easyui/themes/icon.css">
		<script type="text/javascript" src="{{CDN}}/easyui/jquery.min.js"></script>
		<script type="text/javascript" src="{{CDN}}/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="{{CDN}}/easyui/locale/easyui-lang-zh_CN.js"></script>
		<script>

		$(function(){
					
			/*表格初始化*/
			$("#grid").datagrid({
				singleSelect:true,
				fit:true,
				fitColumns:true,
				collapsible:true, 
				striped:true,
				rownumbers:true, 
			    columns:[[    
					{field:'CK',checkbox:true},
					{field:'type',title:'类型',width:50,align:'left'}, 
					{field:'name',title:'接口名称',width:150,align:'left'},   
					{field:'invoke_time',title:'执行时间',width:120,align:'left'}, 
			        {field:'invoke_state',title:'执行状态',width:50,align:'left'},    
			        {field:'msg',title:'消息',width:700,align:'left'}
			    ]],
			    url:'/scheduler/invoke/getLogList'
			});
			
			//查询按钮
			$("#search_btn").click(function(){
				$("#grid").datagrid('reload');
			});
		});
		</script>
	</head>

	<body class="easyui-layout">

		<!-- 主表格 -->
		<div region="center" border="false">
			<table id="grid" data-options="toolbar:'#toolbar'">
                <div id = 'toolbar'>
                    <a href="#" id="search_btn" class="easyui-linkbutton"	 
                        data-options="iconCls:'icon-search'"  >查询</a>
                    <a href="#" id='show_detail_btn' class="easyui-linkbutton" 
                        data-options="iconCls:'icon-add'">查看详情</a>
                </div>   

            </table>
		</div>
	</body>
</html>
